//Deneme
package org.argetr.resim.proc.data;
/** One dimensional array representation.
 */
public class Const1DArrayDA extends Data {
	/** Array construction of type float.
	 */
	public Const1DArrayDA(float[] array){
		_floatArray = array;
		setDataType(Data.FLOAT);
	}
	/** Array construction of type double.
	 */
	public Const1DArrayDA(double[] array){
		_doubleArray = array;
		setDataType(Data.DOUBLE);
	}
	/** Array construction of type int.
	 */
	public Const1DArrayDA(int[] array){
		_intArray = array;
		setDataType(Data.INT);
	}
    protected float[] _floatArray;
    protected double[] _doubleArray;
    protected int[] _intArray;
    protected int[] getIntArray(){
    	return _intArray;
    }
    protected float[] getFloatArray(){
    	return _floatArray;
    }
    protected double[] getDoubleArray(){
    	return _doubleArray;
    }
    protected int getIntValue(int index){
    	return _intArray[index];
    }
    protected void setValue(int index, int value){
    	_intArray[index] = value;
    }
    protected float getFloatValue(int index){
    	return _floatArray[index];
    }
    protected void setValue(int index, float value){
    	_floatArray[index] = value;
    }
    protected double getDoubleValue(int index){
    	return _doubleArray[index];
    }
    protected void setValue(int index, double value){
    	_doubleArray[index] = value;
    }
}
